package sys.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import sys.core.ResponseResult;
import sys.core.annotation.LoginRequired;
import sys.core.annotation.RecordLog;
import sys.entity.OperationEntity;
import sys.entity.PageData;
import sys.entity.StudentEntity;
import sys.service.OperationService;
import sys.service.StudentService;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author Administrator
 */
@RestController
@RequestMapping("/operation")
@Api(tags = "操作日志管理")
public class OperationController {


    @Autowired
    private OperationService operationService;


    /**
     * 查询
     *
     * @return
     */
    @ApiOperation(value = "查询")
    @LoginRequired
    @RecordLog(value = "查询操作日志")
    @PostMapping(value = "/likeSelect")
    public PageData<OperationEntity> select(@RequestBody OperationEntity operationEntity) {
        return operationService.selectByOperName(operationEntity);
    }






}
